﻿<div ng-controller="logisticsController">
	<div class="wrapper border-bottom white-bg page-heading">
		<div class="col-lg-pull-12">
			<ol class="breadcrumb">
				<li>物流订单</li>
			</ol>
		</div>
	</div>

    <form class="form-horizontal row">
        <div class="form-group">
            <div class="col-sm-4">
                <label class="col-sm-4 control-label">提单号</label>
                <div class="col-sm-8">
                    <input name="merchant_id" type="text" class="form-control input-sm" ng-model="query.board_no">
                </div>
            </div>

        </div>
        <div class="form-group">
            <div class="col-sm-4">
                <label class="col-sm-4 control-label">航班号</label>
                <div class="col-sm-8">
                    <input name="merchant_id" type="text" class="form-control input-sm" ng-model="query.flight_no">
                </div>
            </div>

        </div>
        <div class="form-group">
            
            <div class="form-group">
                <div class="col-sm-4">
                    <label class="col-sm-4 control-label">物流状态</label>
                    <div class="col-sm-8">
                        <select class="form-control input-sm" ng-model="query.logistics_status">
                            <option value="">全部</option>
                            <option value="1">备货</option>
                            <option value="2">提单</option>
                            <option value="3">分板</option>
                            <option value="4">运单航班</option>
                            <option value="5">空运航班抵达目的地</option>
                            <option value="6">三单推送</option>
                            <option value="7">到库分栋，开始清关</option>
                            <option value="8">清关完成开始配送</option>
                            
                            <option value="9">国内物流</option>
                        </select>
                    </div>
                </div>

            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-4">
                <div class="col-sm-offset-4 col-sm-8">
                    <button class="btn btn-primary btn-sm" ng-click="search()"><i class="fa fa-search"></i> 查询</button>
                    <!--<button class="btn btn-primary btn-sm"><i class="fa fa-download"></i> 导出</button>-->
                </div>
            </div>
        </div>
    </form>
	<table class="table table-hover m-t-md">
		<thead>
            <tr style="background-color: #f7f7f9;">
                <th>单号名称</th>
                <th>航班号</th>

                <th>提单号</th>
                <th>物流状态</th>
                <th>最近更新时间</th>
                <th width="65">操作</th>
            </tr>
		</thead>
		<tbody ng-repeat="item in model.rows">
			
            <tr>
                <td>{{item.board_name}}</td>
                <td>{{item.flightno}}</td>
                <td>{{item.board_no}}</td>
                <td>{{status_name(item.statuss)}}</td>
                <td>{{item.create_time}}</td>
                <td>
                    <a class="btn btn-primary btn-xs" ng-if="item.statuss==2" ui-sref="app.logistics.splitplate({id:{{item.id}}})"><i class="fa fa-cog"></i> 分板</a>
                    <a class="btn btn-primary btn-xs" ng-if="item.statuss==2" ui-sref="app.logistics.tidan({id:{{item.id}}})"><i class="fa fa-cog"></i> 详情</a>
                    <!--<a class="btn btn-primary btn-xs" ui-sref="app.logistics.detail({id:{{item.id}}})"><i class="fa fa-cog"></i> 详情</a>-->

                </td>
            </tr>
		</tbody>
	</table>
	<div class="row">
		<div class="col-md-12">
			<uib-pagination total-items="model.total_result" items-per-page="model.size" ng-model="model.page" num-pages="model.total_pages"
							ng-change="search_page(model.page)" class="pagination-sm" boundary-links="true" boundary-link-numbers="true" max-size="20"
							previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
			<span class="pull-right" style="margin: 30px 0px 20px 0px">共{{model.total_result}} 当前：{{model.page}}/{{model.total_pages}}</span>
		</div>
	</div>
</div>
